//
//  ViewController.m
//  CircleBtnFrame
//
//  Created by ZXYStart on 15/10/15.
//  Copyright © 2015年 宇周. All rights reserved.
//

#import "ViewController.h"
#import "ZXY_CricleFlipBtnView.h"

@interface ViewController () <ZXY_CricleFlipBtnViewDelegate>
@property(nonatomic , strong)UITableView *tb;
@property(nonatomic , strong)ZXY_CricleFlipBtnView *circleFlip;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.circleFlip = [[ZXY_CricleFlipBtnView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.circleFlip.imgs = @[@"weChat" , @"weChat0" , @"weibo",@"tom" , @"yes" , ];
    self.circleFlip.itemsCircleCenter = CGPointMake([UIScreen mainScreen].bounds.size.width / 2 , [UIScreen mainScreen].bounds.size.height / 2 - 150);
    self.circleFlip.delegate = self;
    self.circleFlip.radius = 50;
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [self.circleFlip showFlipBtns:self.view];
}

- (void)clickCricleFlipBtnView:(ZXY_CricleFlipBtnView *)circleView BtnAtIndex:(NSInteger)index
{
    
}

- (IBAction)addAction:(id)sender {
    [self.circleFlip showFlipBtns:self.view];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
